//
//  CarDetailsViewController.m
//  UcarTest
//
//  Created by 陈曦 on 16/1/14.
//  Copyright © 2016年 chenxi. All rights reserved.
//

#import "MSSAutoresizeLabelFlowConfig2.h"

@implementation MSSAutoresizeLabelFlowConfig2

+ (MSSAutoresizeLabelFlowConfig2 *)shareConfig {
    static MSSAutoresizeLabelFlowConfig2 *config;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        config = [[self alloc]init];
    });
    return config;
}

// default

- (instancetype)init {
    self = [super init];
    if (self) {
        
        self.contentInsets = UIEdgeInsetsMake(10, 15, 10, 15);
        self.lineSpace = 10;//竖排标签之间间距
        self.itemHeight = 21;//标签的高度
        self.itemSpace = 10;//横排标签之间间隔
        self.itemCornerRaius = 3;//标签弧度
        self.itemColor = [UIColor whiteColor];//标签背景色
        self.textMargin = 20;//标签的宽度
        self.textColor = [UIColor colorWithRed:137 / 255.0 green:137 / 255.0 blue:137 / 255.0 alpha:1];//字体颜色
        self.textFont = [UIFont systemFontOfSize:12];//字体大小
        self.backgroundColor = [UIColor clearColor];
        
    }
    return self;
}

@end
